Relation of Code Clones and Change Couplings

نویسندگان

  • Reto Geiger
  • Beat Fluri
  • Harald C. Gall
  • Martin Pinzger
چکیده

Code clones have long been recognized as bad smells in software systems and are considered to cause maintenance problems during evolution. It is broadly assumed that the more clones two files share, the more often they have to be changed together. This relation between clones and change couplings has been postulated but neither demonstrated nor quantified yet. However, given such a relation it would simplify the identification of restructuring candidates and reduce change couplings. In this paper, we examine this relation and discuss if a correlation between code clones and change couplings can be verified. For that, we propose a framework to examine code clones and relate them to change couplings taken from release history analysis. We validated our framework with the open source project Mozilla and the results of the validation show that although the relation is statistically unverifiable it derives a reasonable amount of cases where the relation exists. Therefore, to discover clone candidates for restructuring we additionally propose a set of metrics and a visualization technique. This allows one to spot where a correlation between cloning and change coupling exists and, as a result, which files should be restructured to ease further evolution.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Changes to Code Clones in Evolving Software

Although cut-copy-paste (-and-adapt) techniques are considered bad practice, every programmer is using them. Because such practices not only involve duplication but also modification, they are called code cloning and the duplicated code is called code clone. A clone group consists of the code clones that are clones of each other. Code cloning is easy and cheap during software development, but i...

متن کامل

ON THE COMPATIBILITY OF A CRISP RELATION WITH A FUZZY EQUIVALENCE RELATION

In a recent paper, De Baets et al. have characterized the fuzzytolerance and fuzzy equivalence relations that a given strict order relation iscompatible with. In this paper, we generalize this characterization by consideringan arbitrary (crisp) relation instead of a strict order relation, while payingattention to the particular cases of a reflexive or irreflexive relation. The reasoninglargely ...

متن کامل

Propagation and Interaction of Electrostatic and Electromagnetic Waves in Two Stream Free Electron Laser in the Presence of Self-Fields

A relativistic theory for two-stream free electron laser (FEL) with a one-dimensional helical wiggler and ion-channel guiding in the presence of self-fields are presented. A dispersion relation (DR) which includes coupling between the electromagnetic and the electrostatic waves is derived from a fluid model, with all of the relativistic terms related to the transverse wiggler motion. This DR is...

متن کامل

اثرات خود- میدان‌های الکتریکی و مغناطیسی روی جفت شدگی امواج در لیزر الکترون آزاد با پلاسمای زمینه

In this study, waves instability in free electron laser with background plasma, under the influence of self-electric and self-magnetic fields, are analyzed. A dispersion relation in the Raman regime for free electron laser with a helical wiggler magnetic field and an axial magnetic field derived in which all possible wave modes can have unstable couplings with each other. This dispersion relati...

متن کامل

Modified mathematical model for variable fill fluid coupling

Variable fill fluid couplings are used in the speed control units. Also, variation in coupling oil volume is used in adapting one size of coupling to a wider range of power transmission applications. Available model for the partially filled fluid couplings, has a good performance for couplings with fixed amount of oil but their performance will be degraded if they are used for the variable fill...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006